package com.github.aloxc.plugin.restplus.component;

import com.github.aloxc.plugin.restplus.navigation.action.RestServiceItem;

import javax.swing.tree.DefaultMutableTreeNode;
/**
 *
 * @author leero
 */
public class ServiceNode extends DefaultMutableTreeNode {
    private RestServiceItem restServiceItem;
    private boolean swagger;
    public ServiceNode(RestServiceItem restServiceItem,boolean swagger) {
        super(restServiceItem.getUrl());
        this.restServiceItem = restServiceItem;
        this.swagger = swagger;
    }

    public RestServiceItem getRestServiceItem() {
        return restServiceItem;
    }

    public void setRestServiceItem(RestServiceItem restServiceItem) {
        this.restServiceItem = restServiceItem;
    }

    public boolean isSwagger() {
        return swagger;
    }

    public void setSwagger(boolean swagger) {
        this.swagger = swagger;
    }
}
